package mpcs.controller
{
	import mpcs.NotiConst;
	import mpcs.model.RegProxy;
	import mpcs.model.vo.UserVO;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class RegCommand extends SimpleCommand {
		
		private var proxy:RegProxy;
		
		public function RegCommand() {
			super();
			
			proxy = facade.retrieveProxy(RegProxy.NAME) as RegProxy;
		}
		
		override public function execute(notification:INotification):void{
			var name:String = notification.getName();
			switch(name){
				case NotiConst.S_REGISTER:
					proxy.sRegHandle(UserVO(notification.getBody()));
					break;
			}
		}
		
		
		
	}
}